﻿using Microsoft.Owin;
using Newtonsoft.Json;
using Serilog;
using Sustainalytics.Utils.WebApi.ErrorCodes;
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http.ExceptionHandling;
using System.Web.Http.Results;

namespace Sustainalytics.RiskRatings.Service.Infrastructure
{

    public class SerilogExceptionLogger: ExceptionLogger
    {
        public override void Log(ExceptionLoggerContext context)
        {
            Serilog.Log.Error(context.Exception, $"RiskRatinggs - {0}");
        }
    }
}
